package com.hspedu.homework.homework5;

public class Teacher extends Employee{
    private double classDay;//课酬/天
    private double classSal;

    @Override
    public double annulSal() {
        return super.annulSal()+classDay*classSal;
    }

    @Override
    public void printInfo() {
        super.printInfo();
    }


    public Teacher(String name, String job, double sal, double classDay, double classSal) {
        super(name, job, sal);
        this.classDay = classDay;
        this.classSal = classSal;
    }

    public double getClassDay() {
        return classDay;
    }

    public void setClassDay(double classDay) {
        this.classDay = classDay;
    }

    public double getClassSal() {
        return classSal;
    }

    public void setClassSal(double classSal) {
        this.classSal = classSal;
    }
}
